package com.example.demo.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
@Api(tags = "用户")
@TableName("base_user")
public class UserEntity extends Model<UserEntity> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//菜单id
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "用户ID", name = "用户ID" )
	private Integer id;
	
	/**
	 * 用户名
	 */
	@ApiModelProperty(value = "用户名", name = "用户名" )
	private String userName;
	
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "用户密码", name = "用户密码", hidden = true )
	private String userPassword;
	
	/**
	 * 用户姓名
	 */
	@ApiModelProperty(value = "用户姓名", name = "用户姓名" )
	private String name;
	
	/**
	 * 用户性别
	 */
	@ApiModelProperty(value = "用户性别", name = "用户性别" )
	private Integer sex;

}
